html {
    font-size: 100px;
    // 1rem=100px
}

html,
body,
#app {
    height: 100%;
    overflow: hidden;
}

#app {
    margin: 0 auto;
    position: relative;
    max-width: 750px;
    // background-color: aqua;
}
// 公共样式
@CW:#FFF;
@CH:rgba(255,255,255,.5);
@CG:#31c27c;
// 文字裁切
.text-clip{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


// 背景 
.bg-image,
.bg-mark {
    position: absolute;
    top: -.2rem;
    left: -.2rem;
    // z-index: -2;
    // 渲染内容时调整对象分层的顺序
    width: 120%;
    height: 120%;

}

.bg-image {
    z-index: -2;

    background: url('../images/myDream.jpg') no-repeat;
    background-size: cover;
    // 缩放背景图片以完全覆盖背景区，可能背景图片部分看不见
    // -webkit-filter: blur(7px);
    filter: blur(7px);
    // 引用滤镜
    // blur 高斯模糊
}

.bg-mark {
    z-index: -1;
    background: rgba(0, 0, 0, .5);
}

// 头部
.header-box {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    padding: 0.3rem;
    height: 2.54rem;
    overflow: hidden;
    // background-color: aqua;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .music-btn {
        display: block;
        width: 0.7rem;
        height: 0.7rem;
        background: url('../images/music.svg') no-repeat;
        background-size: 100% 100%;

        &.move {
            animation: music-move 1s linear 0s infinite both;

        }
    }

    .base-info {


        position: relative;
        width: 6.1rem;

        .pic {
            position: absolute;
            top: 0;
            left: 0;
            width: 1.4rem;
            height: 1.4rem;
        }

        .title,
        .author {
            margin-left: 1.5rem;
            font-size: .34rem;
            line-height: 0.7rem;
            color: aliceblue;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;


        }

        .author {
            font-size: .3rem
        }


    }


}

@keyframes music-move {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}



// 歌词
.main-box {
    box-sizing: border-box;

    padding-top: 2.54rem;
    padding-bottom: 2.12rem;
    height: 100%;
    // background-color: aquamarine;
    // overflow: hidden;



    .lyric {
        position: relative;
        height: 100%;
        overflow: hidden;
        // background-color: bisque;



        .wrapper {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            transform: translateY(0);
            transition: transform .3s;


            p {
                padding: 0 .2rem;
                height: 1rem;
                line-height: 1rem;
                text-align: center;
                font-size: .3rem;
                color: aliceblue;
                white-space: nowrap;

                text-overflow: ellipsis;
                overflow: hidden;
                &.active{
                    color: #31c27c;
                    transition: color.3s;
                }
            }
        }

    }
}


// 尾部
.footer-box {
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.2rem;
    width: 100%;
    height: 2.12rem;
    overflow: hidden;

    // background-color: black;
    .download {
        display: block;
        margin: 0 auto;
        width: 4.26rem;
        height: 0.9rem;
        line-height: 0.9rem;
        border-radius: .5rem;
        // background-color: #31c27c;
        background: url('../images/sprite_play.png') no-repeat #31c27c;
        background-size: .8rem 7rem;
        background-position: .2rem -5.85rem;
        font-size: .36rem;
        color: aliceblue;
        text-align: center;
        text-indent: .1rem;
        &:active{
            background-color:darken(@CG,10%);
        }


    }

    .progress {
        display: flex;
        justify-content: space-between;
        align-items: center;


        .already,
        .duration {
            width: 1rem;
            height: 0.82rem;
            line-height: 0.82rem;
            text-align: center;
            font-size: .24rem;
            color: aliceblue;
        }

        .back {
            position: relative;

            flex-grow: 1;
            height: .04rem;
            background: white;

            .rate {
                position: absolute;
                top: 0;
                left: 0;
                height: 100%;
                width: 0;
                background: #31c27c;
                transition: width .1s;
            }

        }
    }
}